package entity;

import java.util.Date;
//this class is only used in the parking lot array of parking spots
public class ParkingSpot {

	public enum pSpot {IN_USE,FREE,DISABLED,SAVED};
	private pSpot status;
	private String carNumber;
	private Date endParkTime;
	public ParkingSpot()
	{
		status=pSpot.FREE;
	}

	public pSpot getStatus() {
		return status;
	}

	public void setStatus(pSpot status) {
		this.status = status;
	}

	public String getCarNumber() {
		if (status==pSpot.IN_USE)
			return carNumber;
		return "";
	}

	public void setCarNumber(String carNumber) {
		this.carNumber = carNumber;
	}

	public Date getEndParkTime() {
		return endParkTime;
	}

	public void setEndParkTime(Date endParkTime) {
		this.endParkTime = endParkTime;
	}
}
